home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
wdj0697.zip
/
WIESMAN.ZIP
/
CUSTCTRL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-20
|
651b
|
30 lines
// CustCtrl.h : header file
//
#ifndef __CUSTCTRL_H__
#define __CUSTCTRL_H__
#define __CUSTCTRLCLASS__ "__WDJCustCtrlClass__"
LRESULT CALLBACK CustomControlWndProc(HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam);
class CCustomControlTerm
{
public:
static BOOL m_bInitialized;
CCustomControlTerm()
{
if(!m_bInitialized)
{
WNDCLASS wc;
GetClassInfo(NULL, "button", &wc);
wc.lpfnWndProc = CustomControlWndProc;
wc.lpszClassName = __CUSTCTRLCLASS__;
m_bInitialized = AfxRegisterClass(&wc);
}
}
};
#endif